package one;

public class Run {

	public static void main(String[] args) {
		
		try {
			MyThread thread = new MyThread();
			thread.start();
			Thread.sleep(5000);
			thread.suspend();
			System.out.println("A= "+System.currentTimeMillis()+" i= "+thread.getI());
			Thread.sleep(5000);
			System.out.println("A= "+System.currentTimeMillis()+" i= "+thread.getI());
			
			thread.resume();
			Thread.sleep(5000);
			
			thread.suspend();
			
		} catch (InterruptedException e) {
			e.printStackTrace();
		}
	}

}
